package com.Cychat.doctor.mapper;

import com.Cychat.commons.entity.pojo.Hospital;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Auther: 谢宝辉  <br/>
 * Date: 2025/11/3:17:19  <br/>
 * Description: 医院Mapper
 */
@Mapper
public interface HospitalMapper extends BaseMapper<Hospital> {
    @Select("select * from hospital")
    List<Hospital> getAllHospital();

    /**
     * 根据ID查询医院信息
     */
    @Select("SELECT * FROM hospital WHERE hospital_id = #{hospitalId}")
    Hospital selectById(@Param("hospitalId") Long hospitalId);

}
